prepare("select * from admin where username = '$username'") ; $chk->execute(); if($chk->rowcount() > 0) { $msg = "An Admin with this $username already Exist, Please Use another Username" ; } } if(empty($msg)) { if($user->createAdmin($username,$pwd,$code)) { $msg = "Admin Created Successfully" ; } } } ?> Admin Panel

CREATE ADMIN

prepare("select * from admin") ; $gtcat->execute() ; $count = 0 ; while($row = $gtcat->fetch(pdo::FETCH_ASSOC)) { $count++ ; echo "" ; echo "" ; // echo "" ; echo "" ; // echo "" ; ?> " ; } ?>
SN USERNAME ACTIONS
".$count."".$row['staff_id_no']."".$row['username']."".$row['level']."DELETE